﻿-- =============================================
-- Author:		Andreas Könighofer (IT-eXperience)
-- Create date: 14.01.2009
-- Description:	Inserts new customer into Customer table
-- =============================================
CREATE PROCEDURE [dbo].[CreateCustomer]
	-- Add the parameters for the stored procedure here
	@CustomerName NVARCHAR(100)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    INSERT INTO [BigDays2009].[dbo].[Customer]
    (
           CustomerName
    )
    VALUES
    (
           @CustomerName
    )
    RETURN SCOPE_IDENTITY()
END

---- end script CreateCustomer stored procedure ----

---- start script CreateLocation stored procedure ----

